﻿@model BrnMall.Web.StoreAdmin.Models.StaffListModel
@using BrnMall.Manager.Domain.AddressBook

@section header{
<title>订单列表-订单管理</title>
<link type="text/css" rel="stylesheet" href="/admin_store/css/site.css"/>
<script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
}

@section body{

    @using (Html.BeginForm("WorkHandOvers","Staff")) { 
    <select name="Frist" id="FristUid">

    </select>
    <select name="Latter" id="LatterUid">

    </select>
    <input type="submit" value="确定" />
    }


<script type="text/javascript">
    $(function () {
        $.ajax({
            url: "/storeadmin/staff/EmployeeList",
            success: function (data) {
                $('#FristUid').html(function () {
                    var arr = [];
                    for (var i in data) 
                        arr.push('<option value="' + data[i].Id+ '">' + data[i].Name + '</option>');
                    return arr.join('');
                });
                $('#LatterUid').html(function () {
                    var arr = [];
                    for (var i in data)
                        arr.push('<option value="' + data[i].Id + '">' + data[i].Name + '</option>');
                    return arr.join('');
                });
            }
        });
    });


    function Ok() {
        $.ajax('')
    }
</script>
}